package com.micro.common.service.web.client.api;

import com.micro.common.service.web.client.domain.req.DictQueryReq;
import com.micro.common.service.web.client.domain.req.task.TaskAddReq;
import com.micro.common.service.web.client.domain.req.task.TaskEditReq;
import com.micro.framework.starter.common.data.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@Api(value = "待办-feign接口", tags = "待办-feign接口")
@RequestMapping("/open/api/task")
public interface TaskOpenApi {

    @ApiOperation(value = "新增待办")
    @PostMapping("/taskAdd")
    Result<Void> taskAdd(@Valid @RequestBody TaskAddReq req);

    @ApiOperation(value = "待办状态")
    @PostMapping("/statusEdit")
    Result<Void> taskStatusEdit(@Valid @RequestBody TaskEditReq req);
}
